window.__YSFWINTYPE__ = Number('2');
window.__YSFTHEMELAYEROUT__ = 1;
window.__YSFBGCOLOR__ = "0";
window.__YSFBGTONE__ = "1";
window.__YSFSDKADR__ = "https://qiyukf.com";
window.ysf = window.ysf || {
    ROOT: 'https://qiyukf.com'
}; !
function() { 
    if (!window.localStorage || !window.postMessage) throw "not support service";
    var util = {
        isMobilePlatform: function() {
            if (/(iPhone|iPod|iOS|Android)/i.test(navigator.userAgent)) return ! 0;
            else return ! 1
        },
        createAjax: function() {
            var e = null;
            var t = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP.4.0", "Msxml2.XMLHTTP.5.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"];
            if (window.XMLHttpRequest) {
                e = new XMLHttpRequest;
                if ("withCredentials" in e) return e
            }
            if (window.xDomainRequest) e = new Window.xDomainRequest;
            return e
        },
        ajax: function(conf) {
            var type = conf.type || "get",
            url = conf.url,
            data = conf.data,
            success = conf.success,
            error = conf.error;
            var xhr = util.createAjax();
            if (xhr) {
                try {
                    xhr.open(type, url)
                } catch(ex) {
                    error();
                    return
                }
                xhr.onreadystatechange = function() {
                    if (4 == xhr.readyState) if (200 === xhr.status) success(eval("(" + xhr.responseText + ")"));
                    else error()
                };
                if ("GET" == type.toUpperCase()) xhr.send(null);
                else {
                    xhr.setRequestHeader("content-type", "application/x-www-form-urlencoded");
                    xhr.send(data)
                }
            } else error()
        },
        findLocalItems: function(e, t) {
            var n, i = [],
            a;
            for (n in localStorage) if (n.match(e) || !e && "string" == typeof n) {
                a = !t ? localStorage.getItem(n) : JSON.parse(localStorage.getItem(n));
                i.push({
                    key: n,
                    val: a
                })
            }
            return i
        },
        clearLocalItems: function(e) {
            for (var t = 0; t < e.length; t++) window.localStorage.removeItem(e[t].key)
        },
        addEvent: function(e, t, n) {
            if (e.addEventListener) e.addEventListener(t, n, !1);
            else if (e.attachEvent) e.attachEvent("on" + t, n)
        },
        mergeUrl: function(e, t) {
            var n = e.split("?"),
            i = n.shift(),
            a = util.query2Object(n.shift() || "", "&");
            for (var o in t) a[o] = t[o];
            for (var o in a) n.push(o + "=" + (a[o] || ""));
            return i + "?" + n.join("&")
        },
        query2Object: function(e, t) {
            var n = e.split(t),
            i = {};
            for (var a = 0; a < n.length; a++) {
                var o = n[a],
                c = (o || "").split("="),
                r = c.shift();
                if (r) i[decodeURIComponent(r)] = decodeURIComponent(c.join("="));
                else;
            }
            return i
        },
        isObject: function(e) {
            return "[object object]" === {}.toString.call(e).toLowerCase()
        },
        isFunction: function(e) {
            return "[object function]" === {}.toString.call(e).toLowerCase()
        },
        notification: function() {
            var e, t;
            return function(n) {
                if (e) {
                    clearTimeout(t);
                    e.close()
                }
                if ("granted" !== Notification.permission) Notification.requestPermission();
                if (window.Notification && "denied" != Notification.permission) {
                    e = new Notification(n.notify, {
                        tag: n.tag,
                        body: n.body,
                        icon: window.__YSFSDKADR__ + n.icon
                    });
                    util.playAudio();
                    e.onclick = function() {
                        e && e.close();
                        window.focus();
                        ysf.openLayer();
                        ysf.NotifyMsgAndBubble({
                            category: "clearCircle"
                        })
                    };
                    t = window.setTimeout(function() {
                        e.close()
                    },
                    2e4)
                }
            }
        } (),
        playAudio: function() {
            var e = document.createElement("audio");
            e.src = window.__YSFSDKADR__ + "/prd/res/audio/message.mp3?26b875bad3e46bf6661b16a5d0080870";
            return function() {
                e.play()
            }
        } ()
    };
    window.ysf = window.ysf || {};
    ysf.ROOT = ysf.ROOT || "";
    var winParam = {};
    var cache = {};
    var proxy;
    var chatProxy;
    var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
    var firstBtnClick = !0;
    var each = function(e, t) {
        if (e && t) for (var n in e) if (e.hasOwnProperty(n)) t.call(null, n, e[n])
    };
    var rand = function(e) {
        if (e) return "ysf-" + e;
        var t = [];
        for (var n = 0,
        i; n < 20; ++n) {
            i = Math.floor(Math.random() * chars.length);
            t.push(chars.charAt(i))
        }
        return t.join("").toLowerCase()
    };
    var migrate = function() {
        var e;
        if (/YSF_UID\s*=\s*(.*?)(?=;|$)/i.test(document.cookie)) e = RegExp.$1;
        if (e) localStorage.setItem("YSF_UID", e);
        var e;
        if (/YSF_LAST\s*=\s*(.*?)(?=;|$)/i.test(document.cookie)) e = RegExp.$1;
        if (e) localStorage.setItem("YSF_LAST", e);
        var t = new Date(1990, 11, 30).toGMTString();
        document.cookie = "YSF_UID=;path=/;expires=" + t;
        document.cookie = "YSF_LAST=;path=/;expires=" + t
    };
    var cmap = {
        ack: function(e) {
            cache.timestamp = parseInt(e, 10);
            if (cache.onackdone) {
                cache.onackdone();
                delete cache.onackdone
            }
        },
        rdy: function(e) {
            syncProfile()
        }
    };
    var wrap = function() {
        var e = document.createElement("div"),
        t = e.style,
        n = {
            top: 0,
            left: 0,
            visibility: "hidden",
            position: "absolute",
            width: "1px",
            height: "1px"
        };
        each(n,
        function(e, n) {
            t[e] = n
        });
        document.body.appendChild(e);
        return e
    };
    var merge = function(e) {
        each(e,
        function(e, t) {
            cache[e] = t
        })
    };
    var refresh = function(e) {
        e = e || "";
        var t = device(),
        n = lastUID();
        if (!t || "" == e && "" != n) {
            t = rand(e);
            sendMsg("synckey:" + t)
        }
        cache.device = t;
        localStorage.setItem("YSF-" + cache["appKey"].toUpperCase() + "-UID", t);
        localStorage.setItem("YSF-" + cache["appKey"].toUpperCase() + "-LAST", e || "")
    };
    var serialize = function(e) {
        var t = [];
        each(e,
        function(e, n) {
            t.push(encodeURIComponent(e) + "=" + encodeURIComponent(n))
        });
        return t.join("&")
    };
    var device = function() {
        return localStorage.getItem("YSF-" + cache["appKey"].toUpperCase() + "-UID") || ""
    };
    var lastUID = function() {
        return localStorage.getItem("YSF-" + cache["appKey"].toUpperCase() + "-LAST") || ""
    };
    var updateDevice = function(e) {
        cache.device = rand(e);
        localStorage.setItem("YSF-" + cache["appKey"].toUpperCase() + "-UID", cache.device);
        sendMsg("synckey:" + cache.device)
    };
    var visit = function() {
        if (cache.appKey) {
            var e = new Image,
            t = serialize({
                uri: location.href,
                title: document.title,
                appkey: cache.appKey
            });
            e.src = ysf.DOMAIN + "webapi/user/accesshistory.action?" + t
        }
    };
    var syncProfile = function() {
        sendMsg("KEY:" + cache.appKey || "");
        var e = {
            title: document.title || ""
        };
        each({
            name: "",
            email: "",
            mobile: "",
            profile: "data"
        },
        function(t, n) {
            var i = cache[n] || cache[t];
            if (null != i) e[t] = i
        });
        e.referrer = location.href;
        e.uid = cache.uid || "";
        sendMsg("USR:" + serialize(e))
    };
    var syncCustomProfile = function(e) {
        sendMsg("PRODUCT:" + serialize(e))
    };
    var sendMsg = function(e) {
        try {
            proxy.contentWindow.postMessage(e, "*")
        } catch(t) {}
    };
    var msgNotifyLock = function() {
        var e = null;
        return function(t, n) {
            var i = ("YSFMSG-" + cache["appKey"] + "-" + t.id).toUpperCase();
            if (e) clearTimeout(e);
            setTimeout(function() {
                if (null == window.localStorage.getItem(i)) {
                    window.localStorage.setItem(i, 1);
                    n(!0)
                }
                n(!1)
            },
            100 * cache["dvcTimer"])
        }
    } ();
    var receiveMsg = function(e) {
        if (e.origin == ysf.ROOT) {
            var t = (e.data || "").split(":"),
            n = t.shift();
            if ("pkg" != n) {
                var i = cmap[(n || "").toLowerCase()];
                if (i) i(t.join(":"))
            } else receivePkg(JSON.parse(t.join(":")))
        }
    };
    var receivePkg = function(e) {
        var t = {
            notify: function(e) {
                var t = "YSF-" + device() + "-MSGNUMBERS";
                msgNotifyLock(e,
                function(n) {
                    var i = Number(window.localStorage.getItem(t) || 0),
                    a = n ? ++i: i;
                    cache["notifyContent"] = e;
                    cache["notifyNumber"] = a;
                    if (n) ysf._unread(ysf.getUnreadMsg());
                    ysf.NotifyMsgAndBubble({
                        category: "notifyCircle",
                        data: {
                            circleNum: a,
                            notifyCnt: e.content,
                            type: e.type
                        }
                    })
                })
            },
            winfocus: function(e) {
                util.notification(e)
            },
            closeIframe: function(e) {
                var t = document.getElementById("YSF-PANEL-CORPINFO") || document.getElementById("YSF-PANEL-INFO"),
                n = document.getElementById("YSF-BTN-HOLDER");
                t.className = "ysf-chat-layer";
                t.setAttribute("data-switch", 0);
                try {
                    chatProxy.contentWindow.postMessage("status:" + JSON.stringify({
                        layerOpen: 0
                    }), "*")
                } catch(i) {}
                if (0 == cache["hidden"]) n.style.display = "block"
            },
            leaveOk: function(e) {
                if (util.resetTimer) clearTimeout(util.resetTimer);
                util.resetTimer = setTimeout(function() {
                    reset()
                },
                1e3)
            }
        };
        var n = t[e.category];
        if (n) n(e)
    };
    var reset = function() {
        var e = document.getElementById("YSF-PANEL-CORPINFO") || document.getElementById("YSF-PANEL-INFO"),
        t = document.getElementById("YSF-BTN-HOLDER");
        document.body.removeChild(e);
        document.body.removeChild(t);
        ysf.init(cache["imgSrc"]);
        firstBtnClick = !0
    };
    var buildProxy = function() {
        if (!proxy) {
            if (window.addEventListener) window.addEventListener("message", receiveMsg, !1);
            else window.attachEvent("onmessage", receiveMsg);
            proxy = wrap();
            proxy.innerHTML = '<iframe style="height:0px; width:0px;" src="' + ysf.RESROOT + "res/delegate.html?" + +new Date + '"></iframe>';
            proxy = proxy.getElementsByTagName("IFRAME")[0]
        }
    };
    var initWinConfig = function() {
        var e = window.screen || {};
        var t = {
            base: ",location=0,menubar=0,scrollbars=0,status=0,toolbar=0,resizable=0",
            winNoInfo: {
                width: 600,
                height: 630,
                top: Math.max(0, ((e.height || 0) - 630) / 2),
                left: Math.max(0, ((e.width || 0) - 600) / 2)
            },
            winHasInfo: {
                width: 842,
                height: 632,
                top: Math.max(0, ((e.height || 0) - 630) / 2),
                left: Math.max(0, ((e.width || 0) - 840) / 2)
            },
            layerNoInfo: {
                param: ""
            },
            layerHasInfo: {
                param: ""
            }
        };
        t.winNoInfo.param = "top=" + t.winNoInfo.top + ",left=" + t.winNoInfo.left + ",width=" + t.winNoInfo.width + ",height=" + t.winNoInfo.height + t.base;
        t.winHasInfo.param = "top=" + t.winHasInfo.top + ",left=" + t.winHasInfo.left + ",width=" + t.winHasInfo.width + ",height=" + t.winHasInfo.height + t.base;
        if (util.isMobilePlatform()) cache["winType"] = 3;
        switch (cache["winType"]) {
        case 1:
            winParam = cache["corpInfo"] ? t.layerHasInfo: t.layerNoInfo;
            winParam.type = "layer";
            break;
        case 3:
            winParam = {
                type: "url",
                param: ""
            };
            break;
        default:
            winParam = cache["corpInfo"] ? t.winHasInfo: t.winNoInfo;
            winParam.type = "win"
        }
    };
    var createDvcTimer = function() {
        var e = localStorage.getItem("YSFDVC-" + cache.device),
        t = 0;
        if (null != e) t = Number(e) + 1;
        localStorage.setItem("YSFDVC-" + cache.device, t);
        cache.dvctimer = t
    };
    ysf.style = function(e) {
        if (e) {
            var t = document.getElementsByTagName("head")[0] || document.body,
            n = document.createElement("style");
            n.type = "text/css";
            t.appendChild(n);
            if ("textContent" in n) n.textContent = e;
            else if (n.styleSheet) n.styleSheet.cssText = e
        }
    };
    ysf.openInline = function(e, t) {
        var n = ysf.url.apply(ysf, arguments);
        if (n) {
            n = util.mergeUrl(n, {
                w: cache["winType"]
            });
            var i = function(e) {
                var t = document.createElement("iframe");
                t.src = e;
                t.id = "YSF-IFRAME-LAYER";
                t.style.width = "100%";
                t.style.height = "100%";
                return t
            };
            var e = e || cache["parent"];
            if ("string" == typeof e) e = document.getElementById(e);
            chatProxy = i(n);
            e.appendChild(chatProxy);
            util.addEvent(chatProxy, "load",
            function() {
                if (1 == t) chatProxy.contentWindow.postMessage("doconnect:" + JSON.stringify({
                    doconnect: 1
                }), "*")
            })
        }
    };
    ysf.entry = function(e) {
        var t = function() {
            var t = document.createElement("div"),
            n = "YSF-CUSTOM-ENTRY-" + window.__YSFTHEMELAYEROUT__;
            if (window.__YSFTHEMELAYEROUT__) t.className = "layer-" + window.__YSFTHEMELAYEROUT__;
            t.setAttribute("id", "YSF-BTN-HOLDER");
            if (1 == cache["hidden"]) t.style.display = "none";
            document.body.appendChild(t);
            t.onclick = function() {
                ysf.open()
            };
            t.innerHTML = '<div id="' + n + '"><img src="' + e.src + '"/></div>';
            return t
        };
        var n = function(e) {
            var t = document.createElement("span");
            t.setAttribute("id", "YSF-BTN-CIRCLE");
            e.appendChild(t)
        };
        var i = function(e) {
            var t = document.createElement("div"),
            n = document.createElement("div"),
            i = document.createElement("span"),
            a = document.createElement("span");
            t.setAttribute("id", "YSF-BTN-BUBBLE");
            n.setAttribute("id", "YSF-BTN-CONTENT");
            i.setAttribute("id", "YSF-BTN-ARROW");
            a.setAttribute("id", "YSF-BTN-CLOSE");
            a.onclick = function(e) {
                e.stopPropagation();
                e.preventDefault();
                ysf.NotifyMsgAndBubble({
                    category: "clearCircle"
                })
            };
            e.appendChild(t);
            t.appendChild(n);
            t.appendChild(i);
            t.appendChild(a)
        };
        var a = t();
        n(a);
        i(a)
    };
    ysf.entryPanel = function(e) {
        var t = document.createElement("div"),
        n = 1 == cache["winType"] ? 0 : 1;
        parseInt(e) ? t.setAttribute("id", "YSF-PANEL-CORPINFO") : t.setAttribute("id", "YSF-PANEL-INFO");
        t.className = "ysf-chat-layer";
        document.body.appendChild(t);
        t.setAttribute("data-switch", n);
        try {
            chatProxy.contentWindow.postMessage("status:" + JSON.stringify({
                layerOpen: n
            }), "*")
        } catch(i) {}
        createDvcTimer();
        ysf.openInline(t, cache["dvcswitch"])
    };
    ysf.invite = function() {
        var e, t, n, i, a = document.createDocumentFragment();
        var o = function() {
            if (!e || !t) {
                e = document.createElement("div");
                e.className = "ysf-online-invite-mask";
                t = document.createElement("div");
                t.className = "ysf-online-invite-wrap";
                t.innerHTML = '<div class="ysf-online-invite"><div class="text"></div><div class="close" title="关闭"></div><img/></div>';
                var n = t.childNodes[0],
                a = n.childNodes,
                o = a[0];
                if ("innerText" in o) o.innerText = i.text;
                else o.textContent = i.text;
                n.onclick = s;
                a[1].onclick = f;
                a[2].onload = function() {
                    window.setTimeout(r, 100)
                }
            }
        };
        var c = function(e) {
            t.getElementsByTagName("IMG")[0].src = e
        };
        var r = function() {
            var e = t.childNodes[0];
            t.style.visibility = "visible"
        };
        var s = function() {
            ysf.open();
            l()
        };
        var f = function(t) {
            t = t || window.event || {};
            if (t.stopPropagation) t.stopPropagation();
            else t.cancelBubble = !0;
            if (e.parentNode != a) l();
            if (0 != i.reject) window.setTimeout(d, 1e3 * i.interval)
        };
        var l = function() {
            a.appendChild(t);
            c(ysf.RESROOT + "res/nej_blank.gif")
        };
        var d = function() {
            var e = +new Date - (cache.timestamp || 0);
            if (e < 5e3);
            o();
            t.style.visibility = "hidden";
            document.body.appendChild(t);
            c(i.src)
        };
        return function(e) {
            if (!i) i = e || {};
            var t = function() {
                window.setTimeout(d, 1e3 * (i.timeout || 0))
            };
            if (i.ignore || cache.timestamp) t();
            else cache.onackdone = t
        }
    } ();
    ysf.openLayer = function() {
        return function(e, t) {
            var n = document.getElementById("YSF-PANEL-CORPINFO") || document.getElementById("YSF-PANEL-INFO"),
            i = document.getElementById("YSF-BTN-HOLDER");
            if (n) {
                i.style.display = "none";
                n.className = "ysf-chat-layer ysf-chat-layeropen";
                n.setAttribute("data-switch", 1);
                try {
                    chatProxy.contentWindow.postMessage("status:" + JSON.stringify({
                        layerOpen: 1
                    }), "*")
                } catch(a) {}
            }
        }
    } ();
    ysf.openWin = function() {
        return function(e, t) {
            window.open(e, "YSF_SERVICE_" + (cache.appKey || "").toUpperCase(), t.param)
        }
    } ();
    ysf.openUrl = function() {
        return function(e, t) {
            window.open(e, "YSF_SERVICE_" + (cache.appKey || "").toUpperCase(), t.param)
        }
    } ();
    ysf.NotifyMsgAndBubble = function(e) {
        var t = {
            clearCircle: function(e) {
                var t = "YSF-" + device() + "-MSGNUMBERS",
                n = document.getElementById("YSF-BTN-CIRCLE"),
                i = document.getElementById("YSF-BTN-BUBBLE");
                i.style.display = "none";
                n.style.display = "none";
                localStorage.setItem(t, 0);
                cache["notifyNumber"] = 0;
                cache["notifyContent"] = ""
            },
            notifyCircle: function(e) {
                var t = "YSF-" + device() + "-MSGNUMBERS";
                localStorage.setItem(t, e.data.circleNum);
                var n = document.getElementById("YSF-BTN-BUBBLE"),
                i = document.getElementById("YSF-BTN-CONTENT"),
                a = document.getElementById("YSF-BTN-CIRCLE");
                var o = document.getElementById("YSF-PANEL-CORPINFO") || document.getElementById("YSF-PANEL-INFO");
                var c = {
                    image: function(e) {
                        return "[图片]"
                    },
                    audio: function(e) {
                        return "[音频]"
                    },
                    text: function(e) {
                        return e
                    }
                };
                if (0 == o.getAttribute("data-switch") && c[e.data.type] && 0 == cache["sdkCustom"]) {
                    a.style.display = "block";
                    n.style.display = "block";
                    a.innerHTML = e.data.circleNum > 99 ? "99+": e.data.circleNum;
                    i.innerHTML = c[e.data.type](e.data.notifyCnt)
                }
            }
        };
        var n = t[e.category];
        if (n) n(e)
    };
    ysf.getUnreadMsg = function() {
        return {
            type: cache["notifyContent"].type,
            message: cache["notifyContent"].content,
            total: cache["notifyNumber"]
        }
    };
    ysf.config = function(e) {
        if (e) {
            merge(e);
            if (cache.appKey) {
                refresh(e.uid);
                visit();
                syncProfile();
                initWinConfig()
            }
        }
    };
    ysf.url = function() {
        if (!cache.appKey) return "";
        var e = {
            k: cache.appKey,
            u: device(),
            gid: cache.groupid || 0,
            sid: cache.staffid || 0,
            atom: cache.atom || 0,
            dvctimer: cache.dvctimer || 0
        };
        each({
            n: "name",
            e: "email",
            m: "mobile"
        },
        function(t, n) {
            var i = cache[n];
            if (i) e[t] = i
        });
        e.t = document.title;
        return ysf.IMROOT + "?" + serialize(e)
    };
    ysf.logoff = function() {
        updateDevice();
        util.clearLocalItems(util.findLocalItems(/msgnumbers/gi))
    };
    ysf.openByLink = function(e) {
        var t = ysf.url();
        if (t) {
            e = e || {};
            var n = e.target || e.srcElement;
            if (n && "A" == n.tagName) n.href = t
        }
    };
    ysf.product = function() {
        var e = function(e) {
            e.title = e.title && e.title.length > 100 ? e.title.slice(0, 100) : e.title;
            e.desc = e.desc && e.desc.length > 300 ? e.desc.slice(0, 300) : e.desc;
            e.note = e.note && e.note.length > 100 ? e.note.slice(0, 100) : e.note;
            return e
        };
        return function(t) {
            t = e(t);
            cache["atom"] = t.show ? t.show: 0;
            syncCustomProfile(t)
        }
    } ();
    ysf.open = function() {
        var e = ysf.url.apply(ysf, arguments);
        if (e) switch (winParam.type) {
        case "win":
            ysf.openWin(e, winParam);
            break;
        case "layer":
            ysf.openLayer(e, winParam);
            try {
                if (firstBtnClick && 0 == cache["dvcswitch"]) {
                    chatProxy.contentWindow.postMessage("doconnect:" + JSON.stringify({
                        doconnect: 1
                    }), "*");
                    firstBtnClick = !1
                }
            } catch(t) {}
            ysf.NotifyMsgAndBubble({
                category: "clearCircle"
            });
            break;
        case "url":
            ysf.openUrl(e, winParam)
        }
    }; !
    function() {
        each({
            DOMAIN: ysf.ROOT + "/",
            IMROOT: function() {
                var e = 1 == window.__YSFWINTYPE__ ? ysf.ROOT + "/client/iframe": ysf.ROOT + "/client";
                if (util.isMobilePlatform()) e = ysf.ROOT + "/client";
                return e
            } (),
            RESROOT: ysf.ROOT + "/sdk/"
        },
        function(e, t) {
            if (null == ysf[e]) ysf[e] = t
        });
        migrate();
        buildProxy()
    } ();
    ysf.init = function(e) {
        var t = function() {
            ysf.entry({
                src: e
            });
            if (1 == cache["winType"]) ysf.entryPanel(cache["corpInfo"])
        };
        util.ajax({
            url: ysf.DOMAIN + "webapi/user/dvcSession.action?k=" + cache["appKey"] + "&d=" + cache["device"],
            success: function(e) {
                if (200 == e.code) {
                    cache["dvcswitch"] = e.result;
                    t()
                } else {
                    cache["dvcswitch"] = 0;
                    t()
                }
            },
            error: function() {
                cache["dvcswitch"] = 0;
                t()
            }
        })
    };
    util.addEvent(window, "beforeunload",
    function() {
        var e = "YSFDVC-" + cache["device"],
        t = "YSFMSG-" + cache["appKey"],
        n = Number(localStorage.getItem(e));
        if (n > 0) localStorage.setItem(e, --n);
        util.clearLocalItems(util.findLocalItems(new RegExp(t, "ig")))
    });
    ysf.on = function() {
        var e = {
            onload: "load",
            unread: 1
        };
        return function(t) {
            var n = Object.prototype.toString.call(t).slice(8, -1);
            if (/object/gi.test(n)) {
                for (var i in t) if ("onload" == i && util.isFunction(t[i])) util.addEvent(proxy, e[i], t[i]);
                else if (util.isFunction(ysf[i]) && util.isFunction(t[i])) ysf["_" + i] = t[i]
            } else console.warn("波比(｡･∀･)ﾉ: 请保持正确的监听姿势...")
        }
    } ();
    ysf._unread = function() {};
    ysf.unread = function() {
        return {
            type: cache["notifyContent"].type,
            message: cache["notifyContent"].content,
            total: cache["notifyNumber"]
        }
    }
} ();
var __YSFOPTION__ = {
    corpInfo: Number('0'),
    winType: Number('2'),
    sdkCustom: 0,
    hidden: 0,
    appKey: '75c208eda7452a9c9dc500ea789cd530'
};
__YSFOPTION__.uid = window.YSFUID || localStorage.getItem('YSF-' + __YSFOPTION__['appKey'].toUpperCase() + '-UID') || '';
try {
    __YSFOPTION__.profile = JSON.stringify(__YSFOPTION__.profile);
} catch(ex) {
    __YSFOPTION__.profile = '';
}
__YSFOPTION__.imgSrc = 'https://qiyukf.com/sdk/res/kefu/custom/1.png';
ysf.config(__YSFOPTION__);
ysf.style(['#YSF-BTN-HOLDER{position: fixed;max-width:30px;max-height:120px;right: 30px; bottom: 0px; cursor: pointer; overflow: visible; filter: alpha(opacity=100);opacity:1;z-index: 9990}', '#YSF-BTN-HOLDER:hover{filter: alpha(opacity=95);opacity:.95}', '#YSF-BTN-HOLDER img{ display: block;overflow: hidden; }', '#YSF-BTN-CIRCLE{display: none;position: absolute;right: -5px;top: -5px;width: auto;min-width: 12px;height: 20px;padding: 0 4px;background-color: #f00;font-size: 12px;line-height: 20px;color: #fff;text-align: center;white-space: nowrap;font-family: sans-serif;border-radius: 10px;z-index:1;}', '#YSF-BTN-HOLDER.layer-1 #YSF-BTN-CIRCLE{top: -30px;}', '#YSF-BTN-HOLDER.layer-2 #YSF-BTN-CIRCLE{top: -30px;}', '#YSF-BTN-HOLDER.layer-3 #YSF-BTN-CIRCLE{top: -30px;}', '#YSF-BTN-HOLDER.layer-4 #YSF-BTN-CIRCLE{top: -30px;}', '#YSF-BTN-HOLDER.layer-5 #YSF-BTN-CIRCLE{top: -30px;}', '#YSF-BTN-HOLDER.layer-6 #YSF-BTN-CIRCLE{top: -5px;}', '#YSF-BTN-BUBBLE{display: none;position: absolute;left: -274px;bottom:0px;width: 278px;height: 80px;box-sizing: border-box;padding: 14px 22px;filter: alpha(opacity=100);opacity:1;background: url(https://qiyukf.com/sdk//res/img/sdk/bg_floatMsg2x.png) no-repeat;background:url(https://qiyukf.com/sdk//res/img/sdk/bg_floatMsg.png)\9; background-size: 278px 80px; z-index: 1;}', '#YSF-BTN-HOLDER.layer-1 #YSF-BTN-BUBBLE{bottom:9px;}', '#YSF-BTN-HOLDER.layer-2 #YSF-BTN-BUBBLE{bottom:9px;}', '#YSF-BTN-HOLDER.layer-3 #YSF-BTN-BUBBLE{bottom:9px;}', '#YSF-BTN-HOLDER.layer-4 #YSF-BTN-BUBBLE{bottom:9px;}', '#YSF-BTN-HOLDER.layer-5 #YSF-BTN-BUBBLE{bottom:9px;}', '#YSF-BTN-HOLDER.layer-6 #YSF-BTN-BUBBLE{bottom:-6px;}', '#YSF-BTN-BUBBLE:hover{filter: alpha(opacity=95);opacity:.95}', '#YSF-BTN-CONTENT{height:45px;padding: 0;white-space: normal;word-break: break-all;text-align: left;font-size: 14px;line-height: 1.6;color: #222;overflow: hidden;z-index: 0;}', '#YSF-BTN-ARROW{ display: none; }', '#YSF-BTN-CLOSE{position: absolute; width:15px; height:15px;right: 4px;top: -3px; filter: alpha(opacity=90); opacity:.9; cursor: pointer; background: url(https://qiyukf.com/sdk//res/img/sdk/btn-close.png) no-repeat;z-index: 1}', '#YSF-BTN-CLOSE:hover{filter: alpha(opacity=100); opacity: 1;}', '#YSF-PANEL-CORPINFO.ysf-chat-layeropen{ width: 511px; height: 470px; box-shadow: 0 0 20px 0 rgba(0, 0, 0, .15);}', '#YSF-PANEL-CORPINFO{ position: fixed; bottom: 0px; right: 20px; width: 0; height: 0; z-index: 99999; }', '#YSF-PANEL-INFO.ysf-chat-layeropen{ width: 311px; height: 470px; filter: alpha(opacity=100);opacity:1; box-shadow: 0 0 20px 0 rgba(0, 0, 0, .15);}', '#YSF-PANEL-INFO{ position: fixed; bottom: 0px; right: 20px; width: 0px; height: 0px; filter: alpha(opacity=0);opacity:0;z-index: 99999;}', '#YSF-CUSTOM-ENTRY{background-color: #F96868;}', '#YSF-CUSTOM-ENTRY-0{position: relative;bottom: 24px;width:auto;background-color: #F96868;box-shadow: 0px 6px 10px 0px rgba(0,0,0,0.25);}', '#YSF-CUSTOM-ENTRY-1{position: relative;bottom: 24px;width:auto;background-color: #F96868;border-radius: 14px; box-shadow: 0px 6px 10px 0px rgba(0,0,0,0.25);}', '#YSF-CUSTOM-ENTRY-2{position: relative;bottom: 24px;width:auto;background-color: #F96868;border-radius: 0;box-shadow: 0px 6px 10px 0px rgba(0,0,0,0.25);}', '#YSF-CUSTOM-ENTRY-3{position: relative;bottom: 24px;width:auto;background-color: #F96868;border-radius: 50%;box-shadow: 0px 6px 10px 0px rgba(0,0,0,0.25);}', '#YSF-CUSTOM-ENTRY-4{position: relative;bottom: 24px;width:auto;background-color: #F96868;border-radius: 50%;box-shadow: 0px 6px 10px 0px rgba(0,0,0,0.25);}', '#YSF-CUSTOM-ENTRY-5{position: relative;bottom: 24px;width:auto;background-color: #F96868;border-radius: 5px;box-shadow: 0px 6px 10px 0px rgba(0,0,0,0.25);}', '#YSF-CUSTOM-ENTRY-6{position: relative;bottom: 0px;width:auto;background-color: #F96868;border-radius:5px;border-bottom-left-radius: 0;border-bottom-right-radius: 0;}', '#YSF-CUSTOM-ENTRY-0 img{max-width: 300px;height:auto;}', '#YSF-CUSTOM-ENTRY-1 img{width:28px;height:auto;}', '#YSF-CUSTOM-ENTRY-2 img{width:58px;height:auto;}', '#YSF-CUSTOM-ENTRY-3 img{width:60px;height:auto;}', '#YSF-CUSTOM-ENTRY-4 img{width:60px;height:auto;}', '#YSF-CUSTOM-ENTRY-5 img{width:60px;height:auto;}', '#YSF-CUSTOM-ENTRY-6 img{width:115px;height:auto;}', '#YSF-IFRAME-LAYER{ border:0; outline:none; }', '.ysf-online-invite-mask{z-index:10000;position:fixed;_position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:#fff;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:alpha(opacity=0);opacity:0;}', '.ysf-online-invite-wrap{z-index:10001;position:fixed;_position:absolute;top:50%;left:50%;width:250px;}', '.ysf-online-invite{position:relative;top:-50%;left:-50%;cursor:pointer;}', '.ysf-online-invite img{display:block;width:250px;}', '.ysf-online-invite .text{position:absolute;top:-11px;left:0;right:0;overflow:hidden;margin: 36px 20px 0 67px;line-height:140%;color:#526069;font-size:14px;font-family:"Microsoft YaHei","微软雅黑",tahoma,arial,simsun,"宋体";text-align:left;white-space:normal;word-wrap:break-word;}', '.ysf-online-invite .close{position:absolute;top:-6px;right:-6px;width:32px;height:32px;background:url(https://qiyukf.com/sdk/res/img/invite-close.png) no-repeat;cursor:pointer;}'].join(' '));
ysf.init('https://qiyukf.com/sdk/res/kefu/custom/1.png');